Download Download the TicketT.java source code.
The TickerT.class applet is a parameter driven Ticker Tape class. By using the PARAMs listed
below you can control the appearance of the Ticker, it's color, speed, borders, and wrapping options.
The TickerT.class applet is a parameter driven Ticker Tape class. It accepts the
following parameters:
- PARAM NAME="tkmargin" VALUE="number"
- The margin at each end of the scrolling text window.
- PARAM NAME="tktmargin" VALUE="number"
- The margin above the title. By default the title and scrolling window
are centered in the applet area. This default can be overridden by setting tktmargin.
- PARAM NAME="tktgap" VALUE="number"
- The spacing between the title and the scrolling windown. By default this gap is
set to 3.
- NAME = "tktitle" VALUE="Title
- The title is placed outside the scrolling area. If no tktitle definition is declared
no space is allocated for this information. If tktitle is defined the default 3D box setting
is activated automatically.
- NAME = "tktfont" default VALUE="TimesRoman"
- The name of the font to be used when writing the title. Default is TimesRoman.
- NAME = "tktfsz" default VALUE="12"
- The size of the font to be used when writing the title. Default is 12 point.
- NAME = "tktitlecolor" default VALUE="#000000"
- The text color to be used when writing the title, the default is black. To set
a different color use a HEX triplet like "#RRGGBB" where RR is a hex value that sets
the red component, GG the green component, and BB the blue component.
- PARAM NAME="tkbox" VALUE="3D" or VALUE="BOX"
- If tkbox is set a plain BOX or 3D box is drawn around the outside of the
scrolling window. The default for tkbox is no box, however, if a title is
defined then tkbox automatically defaults to 3D.
- NAME = "tkboxcolor" default VALUE="#C0C0C0"
- The color to be used when drawing the outline box, the default is silver. To set
a different color use a HEX triplet like "#RRGGBB" where RR is a hex value that sets
the red component, GG the green component, and BB the blue component.
- NAME = "tkbordercolor" VALUE="#FFFFFF"
- The color to be used when drawing the border around the scrolling window itself,
by default tkbordercolor is set equal to tkboxcolor. To set
a different color use a HEX triplet like "#RRGGBB" where RR is a hex value that sets
the red component, GG the green component, and BB the blue component.
- NAME = "tktext" VALUE="some text
- The text to be scrolled through the scrolling window area.
- NAME = "tkfont" default VALUE="TimesRoman"
- The name of the font to be used when writing the scrolling text. Default is TimesRoman.
- NAME = "tkfsz" default VALUE="12"
- The size of the font to be used when writing the scrolling text. Default is 12 point.
- NAME = "tktextcolor" default VALUE="#000000"
- Sets the color of the text in the scrolling window, the default is black.
To set a different color use a HEX triplet like "#RRGGBB" where RR is a hex value that sets
the red component, GG the green component, and BB the blue component.
- NAME = "tktextbackcolor" VALUE="#FFFFFF"
- Sets the color of the background for the scrolling window, the default is white.
To set a different color use a HEX triplet like "#RRGGBB" where RR is a hex value that sets
the red component, GG the green component, and BB the blue component.
- NAME = "tkwrap" default VALUE="No"
- If set to "Yes" the scrolling text wraps around on itself. Otherwise the text loops but
does not wrap end to end.
- NAME = "tkseparator" default VALUE=" * "
- When tkwrap is set to "Yes" the contents tkseparator is inserted between each loop of tktext.
- NAME = "tkspd" default VALUE="1"
- Sets the scrolling speed. 1 is the slowest, and 10 is the fastest.
- NAME = "tkdirection" default VALUE="LEFT"
- Sets the scrolling direction. "Right" or "Left" are the two valid options.